﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmApiLibrary.datatypes
{
    public class SinaUser
    {
        public string id;
        public string screen_name;
        public string name;
        public int province;
        public int city;
        public string location;
        public string description;
        public string url;
        public string profile_image_url;
        public string domain;
        public string gender;
        public int followers_count;
        public int friends_count;
        public int statuses_count;
        public int favourites_count;
        public string created_at;
        public bool following;
        public bool verified;
        public bool allow_all_act_msg;
        public bool geo_enabled;
        public SinaStatus status;
    }


    public class SinaStatus
    {
        public string created_at;
        public string id;
        public string text;

        public string source;
        public bool favorited;
        public bool truncated;
        public Geo geo;
        public string in_reply_to_status_id;
        public string in_reply_to_user_id;
        public string in_reply_to_screen_name;
        public string thumbnail_pic;
        public string bmiddle_pic;
        public string original_pic;
        public string mid;
        public SinaUser user;
        public SinaStatus retweeted_status;
    }

    public class Comment
    {
        public string created_at;
        public string id;
        public string text;
        public Source source;
        public string mid;
        public SinaUser user;
        public SinaStatus status;
        // To do: annotations!
    }
    public class Source
    {
        public SourceUrl a;
    }
    public class SourceUrl
    {
        public string href;
        public string desc;
    }
    public class Geo
    {
        public GeoRss georss;
    }
    public class GeoRss
    {
        public string text;
    }

    public class count
    {
        public string id;
        public int comments;
        public int rt;
    }

    public class SinaFollower
    {
        public List<SinaUser> users;
        public int next_cursor;
        public int previous_cursor;

    }

    public class SinaFriend
    {
        public List<SinaUser> users;
        public int next_cursor;
        public int previous_cursor;
    }
}
